<?php
namespace Home\Model;
use Think\Model;
class AnswerModel extends Model {
	protected $tablePrefix = 're_';  
 	 // 定义自动验证
	protected $pk     = 'id';
	//pk属性定义当前数据表的主键名
    protected $_validate    =   array(
        array('openid','require','openid必须'),
		array('itemid','require','itemid必须'),
    );	
}
